#!/usr/bin/env python
# -*- coding: utf-8 -*-

from getInput import *

def story1(debug = False):
    story = ""
    noun1 = getWord("Enter a noun: ", debug)
    noun2 = getWord("Enter another noun: ", debug)
    noun3 = getWord("Enter another noun: ", debug)
    adjective1 = getWord("Enter a adjective: ", debug)
    years1 = getNumber("Enter a number: ", debug)
    verb1 = getWord("Enter a movment verb: ", debug)
    adjective2 = getWord("Enter a adjective: ", debug)
    adjective3 = getWord("Enter a adjective: ", debug)
    verb2 = getWord("Enter a verb: ", debug)
    
    
    print "The Something that Somethinged!"
    
    story += "One day a " + adjective1 + " " + noun1
    story += " went to the " + adjective2 + " " + noun2 + ". "
    story += noun1.capitalize() + " stayed there for " 
    story += years1 + " years. "
    story += "Then the " + noun1 + " " + verb1 + "ed" + " "
    story += "to the" + " " + noun2 + "."
    story += " " + "A" + " " + adjective3 + " " 
    story += noun3 + " " + "went and" + " " 
    story += verb2 + "ed"
    story += " " + "the" + " "
    story += adjective1 + " " + noun1 + "." + " "
    story += "All three of them" + " " + "the" + " "
    story += adjective1 + " " + noun1 + ", " + "the" + " "
    story += adjective2 + " " + noun2 + ", " + "and the" + " "
    story += adjective3 + " " + noun3 + "." + " "
    story += "Lived hapily ever after...OR DID THEY?!"
    
    
    
    
    
    

    return story
    
def story2(debug = False):
    story = ""
    noun1 = getWord("Enter a noun: ", debug)
    noun2 = getWord("Enter another noun: ", debug)
    years1 = getNumber("Enter a number: ", debug)
    verb1 = getWord("Enter a movment verb: ", debug)
    state1 = getWord("Enter a state in the USA: ", debug)
    place1 = getWord("Enter a planet: ", debug)
    noun3 = getWord("Enter another noun: ", debug)
    noun4 = getWord("Enter one more noun: ", debug)
    
    print "SUPER FUN TIME STORY!"
    
    story += "One SUPER FUN TIME day a SUPER FUN TIME" + " " + noun1 + " "
    story += "went to" + " " + state1.capitalize() + " "
    story += "with a SUPER FUN TIME" + " " + noun2 + " "
    story += "and had a SUPER FUN TIME there." + " "
    story += "Then they" + " " + verb1 + "ed" + " " + "to" + " " + place1.capitalize() + " "
    story += "and it took" + " " + years1 + " " + "years." + " "
    story += "This SUPER FUN TIME" + " " + noun3.capitalize() + " " + "was about to end and the" + " "
    story += noun1.capitalize() + " " + "and the" + " " + noun2.capitalize() + " " + "where the only hope for the" + " "
    story += noun3.capitalize() + "." + " "
    story += "The two of them stopped the" + " " + noun4.capitalize() + " " + "and saved the" + " " + noun3.capitalize() + "."
    
    return story
    
def story3(debug = False):
    story = ""
    name1 = getWord("Enter a name of a place: ", debug)
    date1 = getWord("Enter a year or date: ", debug)
    noun1 = getWord("Enter a noun: ", debug)
    animal1 = getWord("Enter animal: ", debug)  
    gender1 = getWord("Enter gender: ", debug)
    noun2 = getWord("Enter another noun: ", debug)
    adjective1 = getWord("Enter a adjective: ", debug)
    verb1 = getWord("Enter a non movment verb: ",debug)
    
    print "DA STORY!"
        
    story += "This story takes place in the city of" + " " + name1.capitalize()
    story += "." + "It was" + " " + date1 + " " + "and the city of" + " " + name1.capitalize()
    story += " " + "was in chaos." + " " + "The" + " " + noun1.capitalize() + "s" + " "
    story += "had returned." + " " + "There was one they feared" + " " + animal1.capitalize() + " Born!" + " "
    story += gender1 + " " + "was the only hope for the" + " " + adjective1 + " " + noun2 + " " + "people." + " "
    story += animal1.capitalize() + " Born" + " " + verb1 + "the " + noun1.capitalize() + " and the city of" + " "
    story += name1.capitalize() + " " + "was saved!" + " " + "THE END."
        
    return story

def easteregg(debug = False): 
    story = "This was a triumph. I’m making a note here: HUGE SUCCESS. It’s hard to overstate my satisfaction. Aperture Science We do what we must because we can. For the good of all of us."
    story += " Except the ones who are dead. But there’s no sense crying over every mistake. You just keep on trying till you run out of cake. And the Science gets done. And you make a neat gun. For the people who are still alive. I’m not even angry. I’m being so sincere right now. Even though you broke my heart. And killed me. And tore me to pieces. And threw every piece into a fire. As they burned it hurt because I was so happy for you! Now these points of data make a beautiful line. And we’re out of beta. We’re releasing on time. So I’m GLaD. I got burned. Think of all the things we learned for the people who are still alive. Go ahead and leave me. I think I prefer to stay inside. Maybe you’ll find someone else to help you. Maybe Black Mesa THAT WAS A JOKE. HAHA. FAT CHANCE. Anyway, this cake is great. It’s so delicious and moist. Look at me still talking when there’s Science to do. When I look out there, it makes me GLaD I’m not you. I’ve experiments to run. There is research to be done. On the people who are still alive. And believe me I am still alive. I’m doing Science and I’m still alive. I feel FANTASTIC and I’m still alive. While you’re dying I’ll be still alive. And when you’re dead I will be still alive. STILL ALIVE STILL ALIVE"

    return story
